import asyncio

from async_db import async_timed, delay


async def positive_integers_async(util):
    for integer in range(1, util):
        await delay(integer)
        yield integer


@async_timed()
async def main():
    async_generater = positive_integers_async(3)
    print(type(async_generater))
    async for integer in async_generater:
        print(f"获取值{integer}")


asyncio.run(main())
